package com.heima.thread;

public class ThreadGetName01 extends Thread{
    public ThreadGetName01() {
    }

    public ThreadGetName01(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"@@@"+i);
        }
    }
}

